package com.hospital.warehouse.drugpurchase.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hospital.warehouse.drugpurchase.entity.Drugpurchase;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author Mr. YR
 * @since 2020-04-21
 */
public interface DrugpurchaseDao extends BaseMapper<Drugpurchase> {

	public <T> IPage<T> paging(@Param("po") T po, Page<T> page, @Param(Constants.WRAPPER) Wrapper<Drugpurchase> wrapper);

	public Drugpurchase queryById(Integer dp_id);
	
	public List<Drugpurchase> queryByState(String state1,String state2);

}
